import request from '@/utils/request'

// 条件检索
export const rankListFindBySearchApi = (params: any) => request.get<any, any>('/rankList/search', { params })

// 检索用户
export const rankListFindConsumerApi = () => request.get<any, any>('/rankList/consumer')

// 检索歌单
export const rankListFindSongListApi = () => request.get<any, any>('/rankList/songList')

// 新增or修改
export const rankListSaveApi = (rankListData: any) => request.post<any, any>('/rankList', rankListData)

// 删除
export const rankListDeleteApi = (id: any) => request.delete<any, any>('/rankList/' + id)

// 获取平均分
export const rankListAvgApi = (params: any) => request.get<any, any>('/rankList/avg', { params })
